package com.ruoyi.blog.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 博客评论业务对象 blog_comment
 *
 * @author ruoyi
 * @date 2023-10-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogCommentBo extends TreeEntity<BlogCommentBo> {

    /**
     * 博客评论id
     */
    private Long commentId;

    /**
     * 博客文章id
     */
    @NotBlank(message = "博客文章id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String articleId;

    /**
     * 评论正文
     */
    @NotBlank(message = "评论正文不能为空", groups = { AddGroup.class, EditGroup.class })
    private String commentContext;

    /**
     * 是否置顶
     */
    @NotNull(message = "是否置顶不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer topping;

    /**
     * 是否显示
     */
    @NotNull(message = "是否显示不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isShow;


}
